package com.xingchi.tornado.core.code;

import com.xingchi.tornado.basic.BaseCode;
import lombok.Getter;

/**
 * 认证code
 *
 * @author xingchi
 * @date 2024/11/28 22:29
 */
@Getter
public enum SecurityCode implements BaseCode {

    UNAUTHORIZED(40001, "未授权"),
    LOGIN_EXPIRED(40002, "登录过期，请重新登录"),
    PERMISSION_DENIED(40003, "权限不足"),
    ;
    private final Integer code;
    private final String message;

    SecurityCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
